package com.ryan.demo.xstream.mas.model.info;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import com.thoughtworks.xstream.annotations.XStreamOmitField;


public abstract class AbstractInfo implements Serializable {

	/**
	 * sid
	 */
	private static final long serialVersionUID = -7093678774446968417L;
	
	/**
	 * 所有需要新老值的属性都存在该MAP中
	 */
	@XStreamOmitField
	private Map<String, PropInfo> propName2Info = new HashMap<String, PropInfo>();

	public Map<String, PropInfo> getPropName2Info() {
		return propName2Info;
	}

	public void setPropName2Info(Map<String, PropInfo> propName2Info) {
		this.propName2Info = propName2Info;
	}
/*
	public void addPropInfo(String nodeName, Object nodeValue) {
		if (propName2Info == null) {
			propName2Info = new HashMap<String, PropInfo>();
		}
		if (StringUtils.isNotBlank(nodeName)) {
			propName2Info.put(nodeName, PropInfo.genPropInfo(nodeName, nodeValue));
		}
	}
*/
}
